/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package test.util;

import junit.framework.TestCase;
import org.restlet.Request;
import org.restlet.data.Method;
import org.restlet.data.Reference;
import org.restlet.representation.Representation;

/**
 *
 * @author alex
 */
public class APPTestCase extends TestCase {

   public APPTestCase(String name) {
      super(name);
   }

   protected Request makePost(Reference location,Representation entity) {
      Request request = new Request(Method.POST,location);
      request.setEntity(entity);
      return request;
   }

   protected Request makePut(Reference location,Representation entity) {
      Request request = new Request(Method.PUT,location);
      request.setEntity(entity);
      return request;
   }

   protected Request makeGet(Reference location) {
      Request request = new Request(Method.GET,location);
      return request;
   }

   protected Request makeHead(Reference location) {
      Request request = new Request(Method.HEAD,location);
      return request;
   }

   protected Request makeDelete(Reference location) {
      Request request = new Request(Method.DELETE,location);
      return request;
   }

}
